import { Node, Shape } from "@antv/x6";
import { nextId } from '../utils';

export default class SequenceFlow extends Shape.Edge{
  private static default:Node.Metadata = {
    attrs: {
      line: {
        stroke: '#A2B1C3',
        strokeWidth: 2,
      },
    },
  }
  private static complement = (metadata: Node.Metadata={}):Node.Metadata=>{
    metadata.id = metadata.id || nextId();
    return Object.assign({},SequenceFlow.default,metadata);
  }

  constructor(metadata: Node.Metadata={}){
    super(SequenceFlow.complement(metadata));
  }

}
